<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>邮箱验证</title>
    <script src="../../resources/src/js/angular.js"></script>
</head>
<body ng-app="">
    <div>
        <h3>angular.js数据模型-数据验证</h3>
        <div ng-init="myEmail = 'weiwei02@vip.qq.com'">
            <form name="myForm">
                <input type="email" ng-model="myEmail" name="address">
                <span ng-show="myForm.address.$error.email">不是一个合法的email地址</span>
            </form>
        </div>
    </div>
</body>
</html>